<?php /* Smarty version Smarty-3.1.8, created on 2012-06-14 07:47:46
         compiled from "../includes/interface/templates\compteRechercher.tpl" */ ?>
<?php /*%%SmartyHeaderCode:157284fd99722afa3b5-44496238%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e7b49fc88196b840000cb1fa1209f78891b9cd9f' => 
    array (
      0 => '../includes/interface/templates\\compteRechercher.tpl',
      1 => 1339656128,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '157284fd99722afa3b5-44496238',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'groupes' => 0,
    'groupe' => 0,
    'listeComptes' => 0,
    'record' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4fd99722cb9c66_54604354',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4fd99722cb9c66_54604354')) {function content_4fd99722cb9c66_54604354($_smarty_tpl) {?><?php if (!is_callable('smarty_function_cycle')) include 'C:\\wamp\\www\\trunk\\includes\\interface\\smarty\\libs\\plugins\\function.cycle.php';
?><section id="content">
	<h1 class="article"><?php echo $_smarty_tpl->getConfigVariable('COMPTE_RECHERCHER');?>
</h1>
        
    <form class="article buttons" name="formulaire" action="?action=rechercherCompte" method="post">
    
        <fieldset class="form-text">
            <label><?php echo $_smarty_tpl->getConfigVariable('IDENTIFIANT');?>
</label>
            <input type="text" name="identifiant" id="identifiant" class="validate[optional,length[0,20]]"/>
        </fieldset> 
           
            
        <fieldset class="form-text">
        <label><?php echo $_smarty_tpl->getConfigVariable('GROUPE');?>
</label>
            <select name="groupe">
                <option value="">---</option>
                 <?php  $_smarty_tpl->tpl_vars['groupe'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['groupe']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['groupes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['groupe']->key => $_smarty_tpl->tpl_vars['groupe']->value){
$_smarty_tpl->tpl_vars['groupe']->_loop = true;
?>
                <option value="<?php echo $_smarty_tpl->tpl_vars['groupe']->value->getNom();?>
"><?php echo $_smarty_tpl->tpl_vars['groupe']->value->getNom();?>
</option>
                <?php } ?>
            </select>
        </fieldset> 
        
        <fieldset class="form-actions">
            <input type="submit" class="submit" name="rechercherPersonne" value="<?php echo $_smarty_tpl->getConfigVariable('RECHERCHER');?>
" />
        </fieldset>
	</form>
  <h2 class="article"><?php echo $_smarty_tpl->getConfigVariable('RESULTAT_RECHERCHE');?>
</h2>

 
            
    <table id="tableauRecherche" class="article">
        <thead>
            <tr>
                <th width="20px"><?php echo $_smarty_tpl->getConfigVariable('IDENTIFIANT');?>
</th>
                <th width="20px"><?php echo $_smarty_tpl->getConfigVariable('GROUPE');?>
</th>
                <th width="20px"></th>
                <th width="20px"></th>
            </tr> 
        </thead>
        <tbody>
            <?php if (isset($_smarty_tpl->tpl_vars['listeComptes']->value)){?>
                <?php  $_smarty_tpl->tpl_vars['record'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['record']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['listeComptes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['record']->key => $_smarty_tpl->tpl_vars['record']->value){
$_smarty_tpl->tpl_vars['record']->_loop = true;
?>
                    <tr class="<?php echo smarty_function_cycle(array('values'=>"ligne1,ligne2"),$_smarty_tpl);?>
">
                        <td><?php echo $_smarty_tpl->tpl_vars['record']->value->getCompte_username();?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['record']->value->getGroupe_nom();?>
</td>
                        <td><a class="actions" href=""><?php echo $_smarty_tpl->getConfigVariable('SUPPRIMER');?>
</a></td>
                        <td><a class="actions" href="?action=afficherModifierCompte&identifiant=<?php echo $_smarty_tpl->tpl_vars['record']->value->getCompte_username();?>
"><?php echo $_smarty_tpl->getConfigVariable('MODIFIER');?>
</a></td>
                    </tr>


                <?php } ?>    
            <?php }?>     
        </tbody>  
    </table>  
    
    
</section><?php }} ?>